package com.breeze.controller;

import cn.breeze.user.User;
import com.breeze.fegin.UserFeginClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {

    @Autowired
    private UserFeginClient userFeginClient;

    @GetMapping(value = "/user/{id}")
    public User getById(@PathVariable("id")Long id){
        return userFeginClient.getById(id);
    }
}
